package com.ha8.netease.controllers
{
	import com.ha8.netease.views.team.imgviewer.ImageViewer;
	import com.rogo.mvc.interfaces.INotification;
	import com.rogo.mvc.sub.command.Command;
	
	/**
	 * 打开图片查看器
	 * 
	 * @author rogo
	 */	
	public class OpenViewerCommand extends Command
	{
		public function OpenViewerCommand()
		{
			super();
		}
		
		override public function execute(notification:INotification):void
		{
			var source:Object = notification.param;
			if (source)
			{
				var viewer:ImageViewer = new ImageViewer();
				viewer.source = source;
				viewer.open();
			}
		}
		
	}
}